#coding:utf-8
from celery import Celery
from ihome.libs.yuntongxun.sms import CCP

app = Celery('ihome', broker='redis://127.0.0.1:6379/1')


@app.task
def send_sms(to, datas, temp_id):
    ccp = CCP()

    ccp.sendTemplateSMS(to, datas, temp_id)